<template>
<div>
  <el-menu  class="el-menu-demo" mode="horizontal" @select="handleSelect" :router="true">
  <el-menu-item index="/orderformUsersList" @click="currentDate='全部订单'">全部订单</el-menu-item>
  <el-menu-item index="/orderformUsersList" @click="currentDate='待发货'">待发货</el-menu-item>
  <el-menu-item index="/orderformUsersList" @click="currentDate='已发货'">已发货</el-menu-item>
  <el-menu-item index="/orderformUsersList" @click="currentDate='已取消'">已取消</el-menu-item>
</el-menu>
<router-view :current="currentDate" :getCurrentByOrderformStatistics="getCurrentByOrderformStatistics"></router-view>
</div>
</template>

<script>
 export default {
    data() {
      return {
        currentDate:"",
      };
    },
    methods: {
      handleSelect(key, keyPath) {
      },
      getCurrentByOrderformStatistics(data){
        this.currentDate = data
      }
    }
  }
</script>